package com.credithc.customers.dataservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/*
@SpringBootApplication(scanBasePackages = {"com.credithc.customers.base","com.credithc.customers.dataservice","com.credithc.baseserv","com.credithc.eagleeye.spring.starter","com.credithc.eagleeye.agent"},exclude = DataSourceAutoConfiguration.class)
*/
@SpringBootApplication(scanBasePackages = {"com.credithc"})
@EnableEurekaClient
@EnableFeignClients("com.credithc")
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableAsync
@EnableScheduling
public class CustomersDataServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomersDataServiceApplication.class, args);
    }

}

